import React from  'react'
export default  class WaterShow extends React.Component{
    constructor(props){
        super(props)
        this.handleChange=this.handleChange.bind(this)
        this.waterNum=15;
    }
    handleChange(e){
        this.props.handleTem(this.props.type,e.target.value);
    }
    render(){
        return (
            <div>
                <label>{this.props.type}</label>
                <input type="text" value={this.props.num}
                       onChange={this.handleChange}
                       placeholder={'请输入水温度'}/>
            </div>
        )
    }
}
